<%-- 
    Document   : paginaAdmin
    Created on : 23/03/2011, 17:57:45
    Author     : cristiane
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>P&aacute;gina do Administrador</title>
    </head>
    <body background="Background_admin_page.jpg">
        <div id="geral">
            <div id="header">
                <jsp:include page="header.jsp" />
            </div>
            <p>
            <div id="geral">
        <table style="text-align: left; width: 80%" border="1" cellspacing="2" cellpadding="2" bgcolor="#F4A460">
            <tbody>
                <tr><td style="vertical-align: top; text-align: center">
                        <a href="/Projeto1/index.jsp">Pagina Inicial</a></td>
                </tr>
                <tr><td style="vertical-align: top; text-align: center">
                        <a href="/Projeto1/ImobiliariaServlet?cmd=procurarImovel">Procurar Imovel</a></td>
                </tr>
                <tr>
                    <td style="vertical-align: top; text-align: center">
                        <a href="/Projeto1/cadastraImovel.jsp">Cadastrar Imovel</a>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; text-align: center">
                        <a href="/Projeto1/ImobiliariaServlet?cmd=listarProprietarios">Listar Proprietarios</a>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; text-align: center">
                        <a href="/Projeto1/ImobiliariaServlet?cmd=editarImoveis">Editar Imoveis</a>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; text-align: center">
                        <a href="/Projeto1/ImobiliariaServlet?cmd=buscarImoveisNegociados">Buscar Imoveis Negociados</a>
                    </td>
                </tr>
               <%HttpSession sessao = request.getSession(true);
                    sessao = request.getSession();
                    String tipoUsuario = (String)sessao.getAttribute("tipoUsuario");
                    if(tipoUsuario.equalsIgnoreCase("1")){
                        %>
                <tr>
                    <td style="vertical-align: top; text-align: center">
                        <a href="/Projeto1/ImobiliariaServlet?cmd=gerenciarAdministradores">Gerenciar Administradores</a>
                    </td>
                </tr>
                <%
                }
                %>
                <tr>
                    <td style="vertical-align: top; text-align: center">
                        <a href="ImobiliariaServlet?cmd=logout">Sair</a>
                    </td>
                </tr>
            </tbody>
        </table>
            </div>
                <p><div id="footer">
                <jsp:include page="footer.jsp" />
                </div>
        </div>
    </body>
</html>
